package com.vegetable.modules.service.baseData;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.common.utils.PageUtils;
import com.vegetable.modules.entity.baseData.Products;
import com.vegetable.modules.entity.quotation.QuotationArea;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产地商品 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-04
 */
public interface IProductsService extends IService<Products> {

    /**
     * 分页查询产地商品
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页查询产地商品
     * @param params
     * @return
     */
    PageUtils listProducts(Map<String, Object> params);


    /**
     * 根据商品编码查询商品信息
     * @param commonCode
     * @return
     */
    Products queryByCommonCode(String commonCode);

    List<Products> queryList(Products po);
    List<Products> queryListByIds(List<Long> idList);

    String createCommonNo(QuotationArea area, Integer tags);

    String getNextCode();
}
